<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of model_admin
 *
 * @author Admin
 */
class Model_user extends MY_Model {
    var $table = 'user';
	
	public function get_info($id, $field = '') {
		$user = parent::get_info($id, $field);
		if($user===FALSE) return FALSE;
		
		$user->attributes = new stdClass();
		
		$this->load->model('model_user_attrib');
		
		$this->model_user_attrib->primary_key = 'attrib_id';
		$user->attributes = $this->model_user_attrib->get_list_hash(array(
			'where' => array('user_id'	=> $user->id),
			'order'	=> array('attrib_id','asc'),
		));
		return $user;
	}
}

?>
